export const TABLE_COLUMNS = [
  {
    title: '品类树',
    key: 'categoryPath',
  },
  {
    title: 'SKU编码',
    key: 'skuNo',
  },
  {
    title: '商品名称',
    key: 'productName',
  },
  {
    title: '规格',
    key: 'specDetail',
  },
  {
    title: '计量单位',
    key: 'unitName',
  },
  {
    title: '属性名称',
    key: 'attrName',
  },
  {
    title: '属性类型',
    key: 'attrTypeStr',
  },
  {
    title: '是否必填',
    key: 'mustHaveStr',
  },
]

export const ATTR_TYPE_ENUM = {
  Text: '1', // 文本
  Select: '2', // 下拉
  Number: '3', // 数字
}

export const ASSOCIATE_FORM_ITEMS = [
  {
    prop: 'categoryPath',
    label: '分类',
    type: 'input',
  },
  {
    prop: 'productName',
    label: '商品名称',
    type: 'input',
  },
  {
    prop: 'skuNo',
    label: 'SKU编码',
    type: 'input',
  },
  {
    prop: 'spuNo',
    label: 'SPU编码',
    type: 'input',
  }
]

export const ASSOCIATE_TABLE_COLUMNS = [
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: 'SPU编码',
    key: 'spuNo'
  },
  {
    title: 'SKU编码',
    key: 'skuNo'
  },
  {
    title: '品类',
    key: 'categoryPath'
  },
  {
    title: '规格',
    key: 'specDetail'
  },
  {
    title: '商品品牌',
    key: 'brandName'
  },
  {
    title: '审核单号',
    key: 'auditingRecordNo'
  },
]
